package com.grouphy.aop.service.impl;

import com.grouphy.aop.dao.IUserDao;
import com.grouphy.aop.dao.impl.UserDaoImpl;
import com.grouphy.aop.entity.User;
import com.grouphy.aop.service.IUserService;
import com.grouphy.aop.util.BeanFactory;

/**
 * Created With IntelliJ IDEA.
 * Descriptions:
 * User:Mr.Du
 * Date:2022/8/23
 * Time:9:36
 */
public class UserServiceImpl implements IUserService {

    private IUserDao userDao;

    @Override
    public void save(User user) {
        userDao = (IUserDao) BeanFactory.getBean("userDao");
        userDao.save(new User());
    }
}
